package com.own.component.security.exception;

import com.own.base.BaseResponseCode;
import com.own.component.common.exception.BusinessException;
import com.own.component.security.em.SecurityExceptionEnum;

/**
 * SecurityException
 *
 * @author chenxueli
 * @date 2021-6-24 15:58:20
 */
public class SecurityException extends BusinessException {

    public SecurityException() {
        super(SecurityExceptionEnum.DEFAULT);
    }

    public SecurityException(String message) {
        super(SecurityExceptionEnum.DEFAULT.code(), message);
    }

    public SecurityException(String code, String message) {
        super(code, message);
    }

    public SecurityException(BaseResponseCode responseCode) {
        super(responseCode);
    }

}
